package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**邮件表
 * 2021/5/11
 *
 * @author hwj
 */
@Data
@TableName("ve_oa_lanemail")
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class VeOaLaneMailEntity implements Serializable {
    /**主键id*/
    @ApiModelProperty(value = "内部邮件表id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**邮件标题*/
    @Excel(name = "邮件标题", width = 15)
    @ApiModelProperty(value = "邮件标题")
    @TableField(value = "emailTitle")
    private String emailTitle;
    /**邮件时间*/
    @Excel(name = "邮件时间", width = 15)
    @ApiModelProperty(value = "邮件时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**邮件内容*/
    @Excel(name = "邮件内容", width = 15)
    @ApiModelProperty(value = "邮件内容")
    @TableField(value = "emailContent")
    private String emailContent;
    /**邮件附件*/
    @Excel(name = "邮件附件", width = 15)
    @ApiModelProperty(value = "邮件附件")
    @TableField(value = "file_Id")
    private String fileId;
    /**发件人*/
    @Excel(name = "发件人", width = 15)
    @ApiModelProperty(value = "发件人")
    @TableField(value = "fromUser")
    private String fromUser;
    /**发件人姓名*/
    @Excel(name = "发件人姓名", width = 15)
    @ApiModelProperty(value = "发件人姓名")
    @TableField(value = "fromUserName")
    private String fromUserName;
    /**收件人*/
    @Excel(name = "收件人", width = 15)
    @ApiModelProperty(value = "收件人")
    @TableField(value = "toUser")
    private String toUser;
    /**收件人姓名*/
    @Excel(name = "收件人姓名", width = 15)
    @ApiModelProperty(value = "收件人姓名")
    @TableField(value = "toUserName")
    private String toUserName;
    /**邮件状态*/
    @Excel(name = "邮件状态", width = 15)
    @ApiModelProperty(value = "邮件状态")
    @TableField(value = "emailState")
    private String emailState;
    /**阅读状态*/
    @Excel(name = "阅读状态", width = 15)
    @ApiModelProperty(value = "阅读状态")
    @TableField(value = "emailRead")
    private String emailRead;
    /**逻辑删除*/
    @Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deteted")
    private Integer isDeleted;
    /**终端*/
    @Excel(name = "终端", width = 15)
    @ApiModelProperty(value = "终端")
    @TableField(value = "terminalId")
    private Long terminalId;
}
